(() => {
    class Person {
        id: number
        name: string
        sex: string
        constructor(id: number, name: string, sex: string) {
            this.id = id;
            this.name = name;
            this.sex = sex
        }
        sayHello() {
            console.log(`我叫${this.name},我的id是${this.id},我的性别是${this.sex}`);
        }
    }
    const person = new Person(123, "小张", "男")
    person.sayHello()
})()